home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Windows 95 with MFC
/
Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso
/
NT
/
CODE
/
CHAP12
/
PALETTEDEMO
/
PALETTEDEMO.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-04-05
|
696b
|
33 lines
//***********************************************************************
//
// PaletteDemo.h
//
//***********************************************************************
class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance ();
};
class CMainWindow : public CFrameWnd
{
private:
CPalette m_palette;
void DoGradientFill (CDC*, CRect*);
void DoDrawText (CDC*, CRect*);
public:
CMainWindow ();
protected:
afx_msg int OnCreate (LPCREATESTRUCT);
afx_msg BOOL OnEraseBkgnd (CDC*);
afx_msg void OnPaint ();
afx_msg BOOL OnQueryNewPalette ();
afx_msg void OnPaletteChanged (CWnd*);
DECLARE_MESSAGE_MAP ()
};